package com.lxmap;

import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;

public class hashmapdemo03 {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
        map.put("御龙骑士","尹志平");
        map.put("标枪选手","马超");
        map.put("人物挂件","明世隐");

        map.forEach(new BiConsumer<String, String>() {
            @Override
            public void accept(String key, String value) {
                System.out.println(key+"="+value);
            }
        });
    }
}
